package org.eenie.dagger2.injector.modules;

import android.content.Context;

import org.eenie.dagger2.App;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Eenie on 2017/5/3.
 * Email: eeniework@gmail.com
 * Des:
 */

@Module
public class AppModule {

    private Context mApp;

    public AppModule(App app) {
        this.mApp = app;
    }


    @Singleton
    @Provides
    public Context provideAppContext() {
        return mApp;
    }





}
